package hao.d01;

import java.util.Scanner;

public class TestNumber {
    public static void main(String[] args) {
        System.out.println("请输入一个整数：");
        Scanner input = new Scanner(System.in);
        int num = input.nextInt();
        String a = "" + num ;
        int M= a.length();

        System.out.print("倒序输出为：");
        for(int i=0;i<M;i++){
            int x = num%10;
            System.out.print(x);
            num/=10;
        }
    }
}
